package com.example.project.dao;

import com.example.project.dao.sqls.TableCProvider;
import com.example.project.entity.TableA;
import com.example.project.entity.TableC;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * Created by Ethan on 2022-08-25 22:07
 */
@Mapper
public interface TableCDao {
    @SelectProvider(type = TableCProvider.class, method = "findAllSql")
    List<TableC> findAll();

    @SelectProvider(type = TableCProvider.class, method = "findSql")
    List<TableC> findByName(String s);

    @InsertProvider(type = TableCProvider.class, method = "insertSql")
    void save(TableC tableC);
}
